package com.example.springboot2.oa.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springboot2.oa.entity.TMenu;
import com.example.springboot2.oa.mapper.TMenuMapper;
import com.example.springboot2.oa.service.ITMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TMenuServiceImpl extends ServiceImpl<TMenuMapper, TMenu> implements ITMenuService {
    @Autowired
    private TMenuMapper menuMapper;

    public List<TMenu> powerByRole(Integer status, String  roleId) {
        return menuMapper.powerByRole(status, roleId);
    }
}
